Â
In this we are going to see how to build a function to to Print 1 to 10 in Python - Type 3 of Functions in Python Programming Language.
def print_numbers():
l = []
for i in range(1, 11):
l.append(i)
return l
print(print_numbers())
# Coded by Saahil Shaikh
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP